FROM alpine:latest

MAINTAINER PoorBoy 

WORKDIR app
# 清华大学：https://mirror.tuna.tsinghua.edu.cn/alpine/
# 阿里云：https://mirrors.aliyun.com/alpine/
# 中科大：http://mirrors.ustc.edu.cn/alpine/
# 网易：http://mirrors.163.com/
# mirrors.aliyun.com  mirrors.ustc.edu.cn mirrors.sjtug.sjtu.edu.cn
# https://mirror.tuna.tsinghua.edu.cn/alpine/v3.12/main/
# https://mirrors.aliyun.com/alpine/v3.12/main/

RUN echo "https://mirrors.tuna.tsinghua.edu.cn/alpine/latest-stable/main/" > /etc/apk/repositories
# RUN echo "https://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories

RUN apk update \
    && apk upgrade \
    && apk add --no-cache bash  bash-completion tzdata
    

RUN cp -r -f /usr/share/zoneinfo/Hongkong /etc/localtime \
    && rm -rf /var/cache/apk/* \
    && /bin/bash
    
EXPOSE 8080

COPY ./app /app
WORKDIR /app
RUN chmod +x /app/nginx
# CMD [ "/app/nginx" ]
CMD [ "top" ]